<?php

use yii\helpers\Html;


/* @var $this yii\web\View */
/* @var $model app\modules\groups\models\Group */

$this->title = '创建组织';
$this->params['breadcrumbs'][] = ['label' => '组织管理', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="group-create">

    <?php
    use kartik\tree\TreeView;
    use app\modules\groups\models\Tree;
    echo
    TreeView::widget([
        // single query fetch to render the tree
        'query'             => Tree::find()->addOrderBy('root, lft'),
        'headingOptions'    => ['label' => '组织管理'],
//        'isAdmin'           => true,                       // optional (toggle to enable admin mode)
        'displayValue'      => 1,                           // initial display value
//        'softDelete'      => true,                        // normally not needed to change
        //'cacheSettings'   => ['enableCache' => true]      // normally not needed to change
    ]);
    ?>
</div>
